home *** CD-ROM | disk | FTP | other *** search
/ 500 MB Nyheder Direkte fra Internet 6 / 500 MB nyheder direkte fra internet CD 6.iso / start / zipped / dos / novell / pnwtid.exe / 14926.TXT < prev    next >
Text File  |  1994-06-09  |  13KB  |  285 lines

  1.  
  2.  
  3.  
  4.               NOVELL TECHNICAL INFORMATION DOCUMENT
  5.  
  6. TITLE:              Configuring NWCACHE
  7. DOCUMENT ID:        014926
  8. DOCUMENT REVISION:  B
  9. DATE:               27APR94
  10. ALERT STATUS:       Yellow
  11. INFORMATION TYPE:   Issue
  12. README FOR:         NA
  13.  
  14. NOVELL PRODUCT and VERSION:
  15. Novell DOS 7
  16.  
  17. ABSTRACT:
  18.  
  19. NWCACHE is a disk cache with many different configurations
  20. options available. This document discusses some of the
  21. configuration options available for NWCACHE.
  22.  
  23. ------------------------------------------------------------------
  24. DISCLAIMER
  25. THE ORIGIN OF THIS INFORMATION MAY BE INTERNAL OR EXTERNAL TO
  26. NOVELL.  NOVELL MAKES EVERY EFFORT WITHIN ITS MEANS TO VERIFY
  27. THIS INFORMATION.  HOWEVER, THE INFORMATION PROVIDED IN THIS
  28. DOCUMENT IS FOR YOUR INFORMATION ONLY.  NOVELL MAKES NO EXPLICIT
  29. OR IMPLIED CLAIMS TO THE VALIDITY OF THIS INFORMATION.
  30. ------------------------------------------------------------------
  31.  
  32. ISSUE
  33.  
  34.      NWCACHE loads with parameters specifying the maximum cache
  35.      size, the minimum cache size, whether memory lending is
  36.      enabled, and whether write delays are enabled.  These and
  37.      other parameters can be specified when NWCACHE is loaded;
  38.      NWCACHE /? will show the possible values.
  39.  
  40.      If no values are specified, NWCACHE will determine the type
  41.      and amount of memory available on your system and load with
  42.      the appropriate values.  By default, write delays will be
  43.      set to off.  If the necessary memory is available, memory
  44.      lending will be set on, and the maximum and minimum cache
  45.      size will differ by the amount of memory that NWCACHE can
  46.      lend.
  47.  
  48.      SIZE OF CACHE
  49.  
  50.      Using the DPMS specification, NWCACHE moves a portion of its
  51.      code into extended memory.  It also automatically attempts
  52.      to put some code in upper memory.  Therefore, you do not
  53.      need to use HILOAD or HIINSTALL when loading NWCACHE.  The
  54.      NWCACHE code "footprint" is 5 KB (10 KB if DPMS is not
  55.      used), and the look-ahead buffer typically requires 4 to 16
  56.      KB.
  57.  
  58.      If you are using expanded memory (EMS) for the cache buffer,
  59.      use the /BE switch if you wish to minimize the effect of
  60.      NWCACHE on your conventional and upper memory.  This switch
  61.      locates the look-ahead buffer into EMS memory.
  62.  
  63.  
  64.      If you are using extended memory (XMS), load DPMS.EXE before
  65.      NWCACHE and use the /MLX or /MUX (default) switch when
  66.      loading the cache program.
  67.  
  68.      The memory optimization described above for EMS and XMS will
  69.      not necessarily yield the most efficient (fastest) cache
  70.      configuration for every system, so you will need to
  71.      experiment to see what works best on your system.
  72.  
  73.      The maximum allowable size for the NWCACHE buffer is 7 MB.
  74.      If you specify a cache buffer greater than 7 MB, only 7 MB
  75.      will be allocated to NWCACHE.
  76.  
  77.  
  78.      USING NWCACHE AND WINDOWS 3.1
  79.  
  80.      Disk caching with NWCACHE is recommended for improved
  81.      performance with Windows.  NWCACHE needs to be loaded before
  82.      starting Windows, DesqView /X, or any other multitasking
  83.      software.  While Windows is active, diskette drives are
  84.      temporarily switched from buffered write to write-through
  85.      mode.
  86.  
  87.      Although, NWCACHE attempts by default to use all available
  88.      extended memory (up to 7 MB), it lends back memory to
  89.      applications, as requested.  The amount of memory that
  90.      NWCache can lend to an application is determined by the
  91.      difference between the maximum size of the cache and the
  92.      minimum size of the cache, as allocated when NWCache is
  93.      loaded.
  94.  
  95.      For example, if the maximum cache size is set to 4096 and
  96.      the minimum cache size is set to 1024, the amount of memory
  97.      available for lending to other applications is 4096 to 1024,
  98.      which equals 3072 KB or 3 MB.
  99.  
  100.      Windows is unique in that it allocates all extended memory
  101.      when it is loaded.  Other applications use varying amounts
  102.      of extended memory as they need it.
  103.  
  104.      Windows needs 2 MB or more of memory to run efficiently in
  105.      enhanced mode.  If your system has less than 4 MB of memory,
  106.      you need to force NWCACHE to lend at least 2 MB of extended
  107.      memory back to Windows.  To do so, set the minimum cache
  108.      size to be at least 2048 KB smaller than the maximum cache
  109.      size, and set the /LEND switch to /LEND=ON.  An example of
  110.      this configuration would be to load NWCACHE with the
  111.      following parameters:
  112.  
  113.           NWCACHE 3072 1024 /LEND=ON
  114.  
  115.      If you run several applications through Windows and run out
  116.      of memory, you can increase the amount of memory that
  117.      NWCACHE can lend by decreasing the minimum cache size.
  118.  
  119.      For example, to lend 4 MB of memory, make the minimum cache
  120.      size 4096 KB smaller than the maximum cache size (and set
  121.      the /LEND switch to ON).
  122.  
  123.  
  124.      If your system has a lot of memory (8 MB or more) and you
  125.      use Windows extensively, turn off lending completely and set
  126.      a maximum size for the cache buffer, leaving ample memory
  127.      free for Windows.
  128.  
  129.      For example, on a system with 10 MB total memory (9 MB
  130.      extended), load NWCACHE with the following switches: NWCACHE
  131.      3072 1024 /LEND=OFF.  This allocates 3 MB of memory to the
  132.      cache, leaving 6 MB of extended memory untouched, so that
  133.      Windows can have 6 MB for its own use. If you find that
  134.      Windows is still running out of memory, enable lending
  135.      (/LEND=ON).
  136.  
  137.  
  138.      USING NWCACHE WITH NETWORKS
  139.  
  140.      NWCACHE can be used on a DOS network workstation or on a
  141.      PERSONAL NetWare Server.  Some disk caches that do delayed
  142.      writes will cause hanging or corruption on a PERSONAL
  143.      NetWare server; however, NWCACHE has been specifically
  144.      designed to be aware of Novell's peer-to-peer server
  145.      software.  Load NWCACHE before any network is started.
  146.      NWCACHE will not cache remote network drives (such as,
  147.      drives across the network).
  148.  
  149.      If you are running NWCACHE on a system that runs
  150.      peer-to-peer network server software OTHER THAN Novell's
  151.      PERSONAL NetWare server, you should consult that network's
  152.      documentation for information on running with a disk cache.
  153.  
  154.      GENERAL TIPS
  155.  
  156.      Do not use the Novell DOS VERIFY=ON command when using a
  157.      network, as it will negate any gain from caching.  In
  158.      AUTOEXEC.BAT, set VERIFY= to VERIFY=OFF.
  159.  
  160.      When using NWCACHE, set the FASTOPEN command in the
  161.      CONFIG.SYS file to FASTOPEN=0.  A BUFFERS setting of 4
  162.      (BUFFERS=4) in the CONFIG.SYS file is adequate.
  163.  
  164.      NWCACHE should be loaded early in the AUTOEXEC.BAT file
  165.      before the network is loaded.  Any TSRs loaded after NWCACHE
  166.      must be unloaded from memory before NWCACHE can be unloaded
  167.      (with the /Q or /U switch).
  168.  
  169.  
  170.      TROUBLESHOOTING NWCACHE
  171.  
  172.      As is the case with any software cache, NWCACHE should not
  173.      be run concurrently with other disk caches.  If NWCACHE is
  174.      enabled, verify that no other disk cache is running.
  175.  
  176.      If the factors listed here have been eliminated and NWCACHE
  177.      does not function, adjusting the parameters used when
  178.      loading NWCACHE is probably necessary.  Begin with the
  179.      simplest settings.
  180.  
  181.      For example:
  182.  
  183.           NWCACHE /LEND=OFF   /DELAY=OFF
  184.  
  185.  
  186.      If an application seems to need more memory, increase the
  187.      amount of memory that NWCACHE can lend to applications. 
  188.      This can be done by setting /LEND to /LEND=ON, and
  189.      decreasing the minimum cache size.
  190.  
  191.      If it appears that NWCACHE is the cause of an upper memory
  192.      conflict, use the NWCACHE /L, /ML, and /BL switches to force
  193.      all parts of NWCACHE into conventional memory for testing
  194.      purposes.
  195.  
  196.      If you are experiencing problems reading a drive or if you
  197.      are getting data corruption, try disabling delayed writes.
  198.      This is done by placing /DELAY=OFF on the NWCACHE command
  199.      line.  Alternatively, you can use /x:- switch (where x is
  200.      the drive letter), to disable caching on that drive.
  201.  
  202.      If your drive controller or adapter has a built in disk
  203.      cache, you should consult its documentation or technical
  204.      support for information on using software disk caches.  Most
  205.      likely, you will not benefit from NWCACHE. In any case, if
  206.      you run NWCACHE, you should disable the controller's cache.
  207.      However, you will get better use of memory if you allow the
  208.      controller to cache the drive; you will be able to use your
  209.      extended or expanded memory for other purposes.
  210.  
  211.      Some SCSI drives may require that your cache supports double
  212.      buffering of disk transfers.  To enable this, load the
  213.      DBLBUF.SYS driver in the CONFIG.SYS file. The DBLBUF.SYS
  214.      driver will require 2 KB of conventional memory, and it
  215.      needs to be loaded in the CONFIG.SYS file after any lines
  216.      that load memory device drivers or network device drivers.
  217.      Do not load DBLBUF.SYS high.
  218.  
  219.      The following information was taken from a technical
  220.      discussion of some situations when double buffering might be
  221.      needed.  Our technical support department has no
  222.      clarification for the information presented below.  Keep in
  223.      mind that this information has NOT been verified by Novell:
  224.  
  225.           Only some older SCSI controllers that do not use the
  226.           Virtual DMA services require DBLBUF.SYS to be loaded
  227.           before NWCACHE; newer SCSI controllers are safe.
  228.           Multimaster disk controllers and hard disks that use
  229.           DMA for disk transfers, such as PS/2, might also
  230.           require double buffering. INSTALL does not test the
  231.           system for such controllers. NWCACHE will do a simple
  232.           test by reading one sector both into upper and
  233.           conventional memory and will refuse to load if any
  234.           differences in data read were found, but this may not
  235.           yield conclusive results.
  236.  
  237.           The general advice would be: if NWCACHE displays the
  238.           message that DBLBUF.SYS is required, load DBLBUF.SYS at
  239.           the beginning of CONFIG.SYS (before or after
  240.           EMM386.EXE).  Otherwise, load DBLBUF.SYS if you
  241.           experience problems reading/writing to the disk.  It
  242.           would be wise to do a CHKDSK or similar read-only
  243.           operation that cannot trash the disk before you find
  244.           out that double buffering is required.  If NWCACHE is
  245.           not loaded into upper memory (/ML[X] and /BL), double
  246.           buffering will not be required.
  247.  
  248.           If using MS Windows or TASKMGR, however, double
  249.           buffering might be required even if the cache is loaded
  250.           low or not loaded at all.
  251.  
  252.           Previously, there was a "safe-but-slow" setting for
  253.           disk deblocking in IBMBIO.COM. This has been changed to
  254.           a "fast-but-dangerous" setting (as used by MS DOS).
  255.  
  256.           The old default value at which IBMBIO started single
  257.           sector deblocking was A000 (that is, 640 KB).  This had
  258.           a speed penalty for things loaded into upper memory
  259.           (such as STACKER, SERVER).  You could always say
  260.           DEBLOCK=FFFF in CONFIG.SYS.
  261.  
  262.           The new default value is FFFF, so you get the higher
  263.           performance.  The down side is you may get disk
  264.           corruption. Be especially wary of multi-master disk
  265.           controllers, hard disks that use DMA (PS/2's mostly),
  266.           and anything to do with floppy transfer.  You may have
  267.           drivers supplied with the card (such as ASPI4DOS.SYS);
  268.           if so, use them.  You can also use the double buffering
  269.           driver supplied with NWCACHE, or add DEBLOCK=A000 in
  270.           CONFIG.SYS.
  271.  
  272.      SUMMARY
  273.  
  274.      This document covered some of the configuration options for
  275.      use of NWCache.  Step-by-step information can be found in
  276.      the NWCache HotStart.  Further information can be found in
  277.      the Novell DOS 7 User Guide, in DOSBOOK, and in the Novell
  278.      ASK Information System.
  279.  
  280. ----------------------------------------------------------------
  281. Any trademarks referenced in this document are the property of
  282. their respective owners.  Consult your product manuals for
  283. complete trademark information.
  284. ----------------------------------------------------------------
  285.